package com.fpx.metadata.bean.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 需爬取数据库信息
 * @author caowei
 */
@Table(name = "db_info")
@Data
@ApiModel(value = "需爬取数据库信息")
public class DbInfo {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;

    /**
     * 数据库
     */
    @ApiModelProperty(value = "数据库")
    private String databaseName;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址")
    private String host;

    /**
     * 端口号
     */
    @ApiModelProperty(value = "端口号")
    private String port;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String user;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String password;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型")
    private Integer type;

    /**
     * 操作人
     */
    @ApiModelProperty(value = "操作人")
    private String operator;

}